<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>animal-api</title>
</head>
<body>
  <header>测试浏览器环境animal-api</header>
  <div id="imageSrc"></div>
  <div id="text"></div>

  <script src="./lib/index.js"></script>
  <script>
    animalApi.default.getCat().then(res=>{
      document.querySelector('#imageSrc').textContent = res.imageSrc
      document.querySelector('#text').textContent = res.text
    })
  </script>
</body>
</html>